package io.renren.modules.job.task;

import io.renren.modules.merchant.service.impl.StatisticsImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("statistics")
public class StatisticsTask implements ITask{

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private StatisticsImpl statistics;


    @Override
    public void run(String params) {
        statistics.refreshToday();
        logger.debug("StatisticsTask定时任务正在执行，参数为：{}", params);
    }
}
